package com.ruoyi.combat.domain.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@ApiModel("抗归属回调请求")
public class AntiAttributionCallbackRequest extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("任务Id")
    @NotNull(message = "任务Id不能为空")
    private Long taskId;

    @ApiModelProperty("设备抗定位后坐标纬度")
    @NotBlank(message = "设备抗定位后坐标纬度不能为空")
    private String afterEquipRiskLat;

    @ApiModelProperty("设备抗定位后坐标经度")
    @NotBlank(message = "设备抗定位后坐标经度不能为空")
    private String afterEquipRiskLon;

    @ApiModelProperty("设备最新估计位置测量时间")
    @NotNull(message = "设备最新估计位置测量时间不能为空")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date equipEstime;

    @ApiModelProperty("抗定位后风险距离 单位KM")
    private String afterRiskDistance;
}
